package cn.com.transfer.utils;

import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;

/**
 * Created with IntelliJ IDEA.
 * User: chenchi
 * Date: 12-12-15
 * Time: 上午9:45
 * To change this template use File | Settings | File Templates.
 */
public class Executor {
    private static final ExecutorService executor = Executors.newCachedThreadPool();

    public static void execute(Runnable task) {
        executor.execute(task);
    }

    public static void shutdown() {
        executor.shutdown();
    }
}
